<div class="layui-row">
    <div class="layui-col-md6">
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('site.name') }}</label>
                <div class="layui-input-block">
                    <input type="text" name="name" value="{{ setting.site.name }}" class="layui-input">
                    <div class="layui-word-aux">{{ __('site.name_tip') }}</div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('site.domain') }}</label>
                <div class="layui-input-block">
                    <input type="text" name="domain" value="{{ setting.site.domain }}" class="layui-input">
                    <div class="layui-word-aux">{{ __('site.domain_tip') }}</div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('icon') }}</label>
                <div class="layui-input-group">
                    <input type="text" name="icon" value="{{ setting.site.icon }}" placeholder="请选择文件"
                           class="layui-input">
                    <div id="site_icon" class="layui-input-split layui-input-suffix">
                        <i class="layui-icon layui-icon-upload"></i>
                    </div>
                </div>
                {% if setting.site.icon %}
                    <div class="layui-input-block mt2">
                        <img style="width: 80px;height: 80px;" src="{{ setting.site.icon }}">
                    </div>
                {% endif %}
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('logo') }}</label>
                <div class="layui-input-group">
                    <input type="text" name="logo" value="{{ setting.site.logo }}" placeholder="请选择文件"
                           class="layui-input">
                    <div id="site_logo" class="layui-input-split layui-input-suffix">
                        <i class="layui-icon layui-icon-upload"></i>
                    </div>
                </div>
                {% if setting.site.logo %}
                    <div class="layui-input-block mt2">
                        <img style="width: 80px;height: 80px;" src="{{ setting.site.logo }}">
                    </div>
                {% endif %}
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('site.meta_keyword') }}</label>
                <div class="layui-input-block">
                    <textarea type="text"
                              name="keywords"
                              class="layui-textarea">{{ setting.site.keywords }}</textarea>
                    <div class="layui-word-aux">
                        {{ __('site.meta_keyword_tip') }}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"> {{ __('site.meta_tip') }}</label>
                <div class="layui-input-block">
                    <textarea type="text"
                              name="description"
                              class="layui-textarea">{{ setting.site.description }}</textarea>
                    <div class="layui-word-aux">
                        {{ __('site.meta_desc_tip') }}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">{{ __('site.copyright') }}</label>
                <div class="layui-input-block">
                    <input type="text"
                           name="copyright" value="{{ setting.site.copyright }}" class="layui-input">
                    <div class="layui-word-aux">
                        {{ __('site.copyright_tip') }}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="site">
                    {{ __('btn.save') }}
                </button>
            </div>
        </form>
    </div>
</div>
